<template>
<div>
  用户名<input type="text" v-model="form.username">
  密码<input type="text" v-model="form.password">
  <button @click="add">添加</button>
</div>
</template>

<script>
export default {
name: "Tea",
  data(){
  return{
    form:{}
  }
  },
  methods:{
  add(){
    this.axios.post('bb/',this.form).then(res=>{
      this.$router.push({"path":'/login'})
    })
  }
  }
}
</script>

<style scoped>

</style>
